home *** CD-ROM | disk | FTP | other *** search
- @echo off
- : directory names are for example;
- : one could use Teleport Pro's PROJECTS as ARCHIVE, and PROJECTS\yourproj as tmp
- : YOU COULD DOWNLOAD ONLY MAIN-FILE + NEWER MESSAGES - NO NEED TO GET ALL
- : for this feature, follow 2b and 5b
-
- :0. directory ARCHIVE
- :0. directory ARCHIVE\tmp
- :1. goto ARCHIVE\tmp
-
- :2a. download or unzip current messageboard (without MSIE .htm naming!)
- :or
- :2b. download current messageboard MAIN file only
-
- :3. copy previous(OLD) tree-table mbXXXXXX.TRE (if any) here.
- :4. rename messaboard main-file to a shortname - e.g. MBX.CGI
- :5. run perl ..\msgbrd.pl MBX.CGI
- : reads mbXXXXXX.tre (old) tree if any
- : produces ..\mbXXXXXX.tre this is the NEW (updated) structure (tree)
- : ..\mbXXXXXX.hdr (new) header
- : re_name.bat rename/preprocess the NEW messages only
- : getonly.htm links to NEWER messages only
- :
- :5b if you do 2b, NOW download contents of getonly.htm ONLY
- :6. run re_name.bat will take 2-3 min's for ALL
- : (copy & parse all needed messages into files ..\YYYYYYYY.Y)
- :
- :7. now the directory ARCHIVE contains everything needed to rebuild
- : cd ..
- : run perl tree2msb.pl mbXXXXXX.tre (needs mbXXXXXX.hdr)
- : at anytime in that directory to get a rebuilt .htm file
- :8. archiving: files needed are: *.9 mbXXXXXX.*
- : or: *.9 *.tre *.hdr for several messageboards
- : (and may be, perl scripts)
- :
- :if anything goes wrong, the old tree-structure is ARCHIVE\tmp\mbXXXXXX.tre
- :afterwards, the directory tmp + it's contents are not needed anymore
- :
- :initial process will simply skip p.3. Everything else should not make difference
- :between initial and update.
-
- :this is an example try.bat
- :run AFTER unzipping/downloading from inside directory (e.g. ARCHIVE\tmp)
-
- echo this will start preprocessing of messageboard IN CURRENT DIRECTORY
- echo the Previous preprocessed structure/messages should be in upper directory
- echo you should have the ..\mb155985.TRE into other safe place
- pause
- copy/b ..\mb155985.TRE
- copy/b "mbs.cgi-acct=mb155985" MBX.CGI
- perl ..\msgbrd.pl MBX.CGI
- : reads mbXXXXXX.tre (old) tree if any
- : produces ..\mbXXXXXX.tre this is the NEW (updated) structure (tree)
- : ..\mbXXXXXX.hdr (new) header
- : re_name.bat rename/preprocess the NEW messages only
- : getonly.htm links to NEWER messages only
- echo.
- echo stop here by Ctrl-C if goes wrong; mb155985.TRE in CURRENT dir is older one
- pause
- call re_name.bat
- echo update OK.
- echo rebuild updated messageboard
- cd ..
- perl tree2msb.pl mb155985.TRE
- echo mb155985.htm is ready for use
-
- :echo archiving...
- :ain u -m1 MBFRAVIA mb155*.tre mb155*.hdr *.9 *.pl
-